package com.heima.article.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：MP提供的分页插件
 * @date ：Created in 2022/4/17
 * @description ：
 * @version: 1.0
 */
@Configuration
@MapperScan("com.heima.article.mapper")
public class MybatisPlusConfig {
	@Bean
	public PaginationInterceptor paginationInterceptor(){
		PaginationInterceptor interceptor = new PaginationInterceptor();
		return interceptor;
	}
}
